k = int(input())


def s(x):
    n = 0
    s = 0
    while 1:
        n += 1
        s = s + 1/n
        if s >= x:
            return n


print(s(k))
